<%@include file="header.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%@ page import="entities.User"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Send Message</title>
<script language="JavaScript">
function closeMessage(){
	//var place=document.getElementById("btnMap").value;

	window.close("/SendMessage");
}
function closeWindow(){
	//var place=document.getElementById("btnMap").value;

	window.close();
}
</script> 
</head>

<body>
	<h1>Send Message</h1>
	<fieldset>
	  <legend>Message</legend>
	  <form action="SendMessage" id="SendMessage" name="SendMessage" method="post">
	   <% User data= (User)request.getAttribute("data");
				request.getSession().setAttribute("user",data); 
			%>
	    <label for="Destinataire">Recipient: </label>
            <input type="text" name="Destinataire" id="Destinataire" size="15"/><br/>  
            <span id="infoDestinataire" class="info"></span></p>
            
        <label for="Header">Header: </label>
            <input type="text" name="Header" id="Header"  size="20"/><br/>
            <span id="infoHeader" class="info"></span></p>       
            
             
        <label for="Message">Message: </label>
            <input id="Message" type="text" name="Message" size="50"/><br/>            
             
         <input type="submit" value="Send Message"/>  
                    
	  </form>
	 </fieldset>
	  <br/>
	  <form action="userFunctions.jsp" method="post" >
	  	<input type="submit" onclick="closeWindow()" value="Back"/>
	  </form>
	
</body>
</html>